import request from '@/utils/request'

enum API {
    SKU_URL = '/admin/product/list/',
    SALE_URL = '/admin/product/onSale/',
    CANCELSALE_URL = '/admin/product/cancelSale/',
    SKUINFO_URL = '/admin/product/getSkuInfo/',
    DELETESKU_URL = '/admin/product/deleteSku/'

}

export const reqSkuList = (page, size) => request.get(API.SKU_URL + `${page}/${size}`)

export const reqSaleSku = (id) => request.get(API.SALE_URL + id)

export const reqCancelSaleSku = (id) => request.get(API.CANCELSALE_URL + id)

export const reqSkuInfo = (id) => request.get(API.SKUINFO_URL + id)

export const reqDeleteSku=(id)=>request.delete(API.DELETESKU_URL+id)